//
//  TMGProductTableViewCell.m
//  TMGold
//
//  Created by Mac on 2017/11/9.
//  Copyright © 2017年 tangmu. All rights reserved.
//

#import "TMGFlowMoreTableViewCell.h"
@interface TMGFlowMoreTableViewCell()


@end
@implementation TMGFlowMoreTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self configSubView];
    }
    return self;
}
+ (CGFloat)cellHeight{
    return 200;
}
#pragma mark --subView
- (void)configSubView{
    
    self.backgroundColor = [UIColor whiteColor];
    
    UIView * headerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, UIScreenWidth, 44)];
    headerView.backgroundColor = TM_backgroundColor;
    [self addSubview:headerView];
    
    UIView * yeallowView = [[UIView alloc] initWithFrame:CGRectMake(20,0 +10 , 4, 15 )];
    yeallowView.backgroundColor = TM_orangeColor;
    yeallowView.centerY = 22;
    [headerView addSubview:yeallowView];
    
    
    self.titleLable = [[STLabel alloc] initWithFrame:CGRectMake(yeallowView.right + 15, 0, 200, 44)
                                                     text:@"买的真的是黄金吗?"
                                                textColor:TM_firstTextColor
                                                     font:13
                                              isSizetoFit:NO
                                            textAlignment:NSTextAlignmentLeft];
    [headerView addSubview:self.titleLable];
    
    
    //
    self.subTitleLabel = [[STLabel alloc] initWithFrame:CGRectMake(0, headerView.bottom, UIScreenWidth, 44)
                                                text:@"黄金来源于国家交易市场"
                                           textColor:TM_firstTextColor
                                                font:13
                                         isSizetoFit:NO
                                       textAlignment:NSTextAlignmentCenter];
    [self addSubview:self.subTitleLabel];
    
    self.desLabel = [[STLabel alloc] initWithFrame:CGRectMake(15, _subTitleLabel.bottom  +10, UIScreenWidth - 30, 44)
                                                   text:@"黄金来源于国家交易市是范德萨发生地方范德萨范德萨发三大范德萨范德萨发第三方第三方第三方第三方第三方第三方似懂非懂是否水电费范德萨发生的的是范德萨发生地方斯蒂芬斯蒂芬场"
                                              textColor:TM_firstTextColor
                                                   font:13
                                            isSizetoFit:NO
                                          textAlignment:NSTextAlignmentLeft];
    self.desLabel.numberOfLines = 0;
    [NSString lableAutoAdjustheightWithLabel:self.desLabel];
    [self addSubview:self.desLabel];
    
}

@end


